﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;
using System.Windows;

namespace testProject
{
    class MyCommands:ICommand
    {
        public static RoutedUICommand ShowTextCommand;

        static MyCommands()
        {
            ShowTextCommand = new RoutedUICommand("Custom Command", "ShowTextCommand", typeof(MyCommands));
        }
        #region ICommand Members

        public bool CanExecute(object parameter)
        {
            return true;
        }

        public event EventHandler CanExecuteChanged;

        public void Execute(object parameter)
        {
            MessageBox.Show(parameter.ToString());
        }

        #endregion
    }
}
